home *** CD-ROM | disk | FTP | other *** search
/ Hacks & Cracks / Hacks_and_Cracks.iso / manuals / newbies guide to softice / si-ug-chapter10.txt < prev    next >
Text File  |  1999-04-07  |  4KB  |  81 lines

  1. CHAPTER 10 - Using Soft-ICE with MagicCV or MagicCVW
  2.  
  3.      10.01 Introduction
  4.      10.02 Running Soft-ICE with MagicCV or MagicCVW
  5.      10.03 Special Considerations
  6.      10.04 The Soft-ICE ACTION command
  7.  
  8. 10.01 Introduction
  9.  
  10.      MagicCV allows you to run Microsoft's CodeView in less than 8K of
  11.      conventional memory on your 80386 machine.
  12.  
  13.      MagicCVW allows you to run Microsoft's CodeView for Windows in less
  14.      than 8K of conventional memory on your 80386 machine.
  15.  
  16.      Using Soft-ICE in combination with MagicCV or MagicCVW allows you to
  17.      have the power of Soft-ICE while still having the convenience of using
  18.      the CodeView product that you are familiar with.
  19.  
  20.      In the rest of this chapter, statements about MCV will apply to both
  21.      MagicCV and MagicCVW, and statements about CV will apply to both
  22.      CodeView and CodeView for Windows.
  23.  
  24. 10.02 Running Soft-ICE with MagicCV or MagicCVW
  25.  
  26.      To use Soft-ICE 2.0 and MCV together, you must install S-ICE.EXE as a
  27.      loadable device driver. S-ICE.EXE comes on the Soft-ICE diskette. S-
  28.      ICE.EXE replaces NUMEGA.SYS in CONFIG.SYS. Use the /MCV, /EMM, and the
  29.      /EXT switches as if using MagicCV or MagicCVW alone. There are
  30.      additional switches that you may want to use for Soft-ICE. Refer to
  31.      chapter 6 for information about these switches.
  32.  
  33.      To run MagicCV or MagicCVW after Soft-ICE has been loaded, refer to
  34.      your MagicCV or MagicCVW manual.
  35.  
  36.      Notes : MagicCVW requires Soft-ICE version 2.00 or greater. MagicCV
  37.      requires Soft-ICE version 1.02 or greater. The S-ICE.SYS and
  38.      NUMEGA.SYS drivers were shipped with some versions of Soft-ICE. The
  39.      S-ICE and NUMEGA drivers must be replaced by S-ICE.EXE before you can
  40.      run MagicCV and Soft- ICE 2.0 together.
  41.  
  42. 10.03 Special Considerations
  43.  
  44.      Two Virtual Machines : When you are using both Soft-ICE and MCV
  45.      together, you must keep in mind that CV is in a separate virtual
  46.      machine from the target environment. You can pop Soft-ICE up from
  47.      either virtual machine, i.e., when CV is running, or when the target
  48.      program is running.
  49.  
  50.      If you pop Soft-ICE up while the target program is running everything
  51.      works as defined in the Soft-ICE manual. If you pop Soft-ICE up while
  52.      CV is running (typically done to break points), you must keep a few
  53.      points in mind:
  54.  
  55.    * The registers are those of CV and they CAN NOT be changed.
  56.    * For convenience, the Soft-ICE MAP command displays the memory map of
  57.      the target program virtual machine, not the memory map of the CV
  58.      virtual machine. The highlighted area in the memory map may not be
  59.      correct.
  60.    * Any display or modification of memory occurs in the target program's
  61.      virtual machine.
  62.    * You have no visibility into the CV virtual machine except for the
  63.      display of register values. Remember that when popping up the Soft-ICE
  64.      window while CV is active, the register values are those of CV and
  65.      should not be modified.
  66.    * Instruction and program tracing is disabled from the Soft-ICE window
  67.      when CV is active. This is to prevent confusion, because a trace would
  68.      actually step through CV, not through the target program. If you
  69.      attempt to do a Soft-ICE Trace (T) or Program Step (P) command while
  70.      CV is active, you will get the warning message: "Function not
  71.      available in CV virtual machine." To trace through your target program
  72.      code instead, you can do one of two options:
  73.    * Use the CV trace command. To do this, exit the Soft-ICE window using
  74.      the Soft-ICE X command, then do one or more CV traces to step through
  75.      the target program.
  76.    * Use Soft-ICE to go to the target program address, then use the
  77.      Soft-ICE T or P commands to step through your target program. To do
  78.      this, exit the Soft-ICE window with the Soft-ICE X command, then press
  79.      the 'F3' key until CV is in 'mixed mode'. This allows you to see both
  80.      the source lines and the instruction addresses. Pop up Soft-ICE. If
  81.      the Soft-ICE window is not already in narrow mode, use the S